<%@ page import="org.hr.xtime.absence.Day" %>



<div class="fieldcontain ${hasErrors(bean: dayInstance, field: 'date', 'error')} required">
	<label for="date">
		<g:message code="day.date.label" default="Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date" precision="day"  value="${dayInstance?.date}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: dayInstance, field: 'employee', 'error')} required">
	<label for="employee">
		<g:message code="day.employee.label" default="Employee" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="employee" name="employee.id" from="${org.hr.xtime.user.Employee.list()}" optionKey="id" required="" value="${dayInstance?.employee?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: dayInstance, field: 'status', 'error')} ">
	<label for="status">
		<g:message code="day.status.label" default="Status" />
		
	</label>
	<g:textField name="status" value="${dayInstance?.status}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: dayInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="day.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="type" name="type.id" from="${org.hr.xtime.absence.DayType.list()}" optionKey="id" required="" value="${dayInstance?.type?.id}" class="many-to-one"/>
</div>

